package com.mvc.service.impl;

import com.mvc.entity.User;
import com.mvc.mapper.CommodityGradeMapper;
import com.mvc.service.CommodityGradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName CommodityGradeServiceImpl
 * @Description TODO
 * @Author king
 * @Date 2021/12/2 19:19
 * @Version 1.0
 **/
@Service
public class CommodityGradeServiceImpl implements CommodityGradeService {
    @Autowired
    private CommodityGradeMapper commodityGradeMapper;
    @Override
    public List<User> listSearch(Integer startRow, Integer limit, Integer shop_id, String uname) {
        return commodityGradeMapper.listSearch(startRow,limit,shop_id,uname);
    }

    @Override
    public Integer getCount(Integer shop_id, String uname) {
        return commodityGradeMapper.getCount(shop_id,uname);
    }
}
